﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ElectronicRecords.Models.Equipments>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Новое оборудование
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Новое оборудование</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Информация об оборудовании</legend>
            
           
            
            <div class="editor-label">
                <%: Html.Label("Название") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>
            
            <div class="editor-label">
                <%: Html.Label("Примечание") %>
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.Description) %>
                <%: Html.ValidationMessageFor(model => model.Description) %>
            </div>
            
            <div class="editor-label">
                <%: Html.Label("Активно") %>
            </div>
            <div class="editor-field">
                <%: Html.CheckBoxFor(model => model.Is_Active) %>
                <%: Html.ValidationMessageFor(model => model.Is_Active) %>
            </div>
            
           
            
            <p>
                <input type="submit" value="Создать" class="g-button" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Назад к списку", "List", new { }, new { @class="g-button"})%>
    </div>

</asp:Content>

